package behavioralPattern.iterator.example02;

public class Client {
    public static void main(String[] args) {
        Topic[] topics = new Topic[4];

        topics[0] = new Topic("11");
        topics[1] = new Topic("22");
        topics[2] = new Topic("33");
        topics[3] = new Topic("44");

        TopicList tpoicList = new TopicList(topics);
        Iterator_test<Topic> iterator = tpoicList.iterator();

        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
